﻿using System.ComponentModel.DataAnnotations;

namespace NotesVaultOnline.Data.Models
{
    public class UserSignIn
    {
        [Required(ErrorMessage = "Required.")]
        //[EmailAddress(ErrorMessage = "Invalid E-mail.")]
        [Display(Name = "Email Address")]
        public string Email { get; set; }

        [Required(ErrorMessage = "Required.")]
        [StringLength(int.MaxValue, ErrorMessage = "{2} characters or more.", MinimumLength = 2)]
        [DataType(DataType.Password)]
        [Display(Name = "Password")]
        public string Password { get; set; }

        public CustomResult Result { get; set; }
    }
}
